import request from "./request";


//GET
// /getAll
// 查看所有访客记录
export function getAllApi( ) {
    return request({
        url: '/getAll' ,
        method: 'get',
    })
}

//
// /getRemoved
// 查看已撤销访客记录
export function getRemovedApi( ) {
    return request({
        url: '/getRemoved' ,
        method: 'get',
    })
}


//同意PUT
//
// 审批访客申请
export function approveApi(id: any) {
    return request({
        url: '/approve/' + id,
        method: 'PUT',
    })
}


// 撤销访客申请
export function cancelApi(id: any) {
    return request({
        url: '/quashRecord/' + id,
        method: 'PUT',
    })
}



